<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Created by PhpStorm.
 * User: jinzhao
 * Date: 16-8-4
 * Time: 上午12:10
 */
class MY_Controller extends CI_Controller{
    public function __construct()
    {
        parent::__construct();
        
        $email = $this->session->userdata('email');
        if (!isset($email) || $email == ''){
//            redirect('admin/login', 'refresh');
            goto_page('admin/login');
        }
    }
}